public abstract class Bird{
   //Fly
   protected FlyBehavior flyBehavior;

   //Swim
   protected SwimBehavior swimBehavior;

   public Bird(FlyBehavior flyBehavior,SwimBehavior swimBehavior){
      this.flyBehavior = flyBehavior;
      this.swimBehavior = swimBehavior;
   }

   public abstract void display();
}
